package com.xmx.usercenter.feign;

import com.xmx.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


@FeignClient("auth-center")
public interface OauthClientFeign {

    @PostMapping("oauth/token")
    R postAessToken(@RequestParam Map<String,String> parmas);

    @PostMapping("oauth/logout")
    R logout();
}
